//
//  DVUserModel.h
//  DVActivity
//
//  Created by pan Shiyu on 13-5-6.
//  Copyright (c) 2013年 pan Shiyu. All rights reserved.
//

#import <Foundation/Foundation.h>
@class DVUserInfo;
@interface DVUserModel : NSObject

#warning TODO qph ：这部分还是要服务端生成的，客户端自己生成的会有各种问题，尤其是安全性问题，客户端可以给你一个uuid(类似设备id的东西)
+ (void)createUserIDByName:(NSString*)name
                        uerID:(NSString*)userID
                   password:(NSString*)password
                      phone:(NSString*)phone
                    success:(void (^)(NSString *newUid))success
                    failure:(void (^)(NSError *error))failure;

+ (void)requestUserInfoByUID:(NSString*)userID
                    success:(void (^)(DVUserInfo *userInfo))success
                    failure:(void (^)(NSError *error))failure;

@end
